package com.loyal.loyalerp.basedata.employeechange.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class GyPersonChangeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public GyPersonChangeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andPersonidIsNull() {
            addCriterion("personId is null");
            return (Criteria) this;
        }

        public Criteria andPersonidIsNotNull() {
            addCriterion("personId is not null");
            return (Criteria) this;
        }

        public Criteria andPersonidEqualTo(Integer value) {
            addCriterion("personId =", value, "personid");
            return (Criteria) this;
        }

        public Criteria andPersonidNotEqualTo(Integer value) {
            addCriterion("personId <>", value, "personid");
            return (Criteria) this;
        }

        public Criteria andPersonidGreaterThan(Integer value) {
            addCriterion("personId >", value, "personid");
            return (Criteria) this;
        }

        public Criteria andPersonidGreaterThanOrEqualTo(Integer value) {
            addCriterion("personId >=", value, "personid");
            return (Criteria) this;
        }

        public Criteria andPersonidLessThan(Integer value) {
            addCriterion("personId <", value, "personid");
            return (Criteria) this;
        }

        public Criteria andPersonidLessThanOrEqualTo(Integer value) {
            addCriterion("personId <=", value, "personid");
            return (Criteria) this;
        }

        public Criteria andPersonidIn(List<Integer> values) {
            addCriterion("personId in", values, "personid");
            return (Criteria) this;
        }

        public Criteria andPersonidNotIn(List<Integer> values) {
            addCriterion("personId not in", values, "personid");
            return (Criteria) this;
        }

        public Criteria andPersonidBetween(Integer value1, Integer value2) {
            addCriterion("personId between", value1, value2, "personid");
            return (Criteria) this;
        }

        public Criteria andPersonidNotBetween(Integer value1, Integer value2) {
            addCriterion("personId not between", value1, value2, "personid");
            return (Criteria) this;
        }

        public Criteria andChangetypeIsNull() {
            addCriterion("changeType is null");
            return (Criteria) this;
        }

        public Criteria andChangetypeIsNotNull() {
            addCriterion("changeType is not null");
            return (Criteria) this;
        }

        public Criteria andChangetypeEqualTo(String value) {
            addCriterion("changeType =", value, "changetype");
            return (Criteria) this;
        }

        public Criteria andChangetypeNotEqualTo(String value) {
            addCriterion("changeType <>", value, "changetype");
            return (Criteria) this;
        }

        public Criteria andChangetypeGreaterThan(String value) {
            addCriterion("changeType >", value, "changetype");
            return (Criteria) this;
        }

        public Criteria andChangetypeGreaterThanOrEqualTo(String value) {
            addCriterion("changeType >=", value, "changetype");
            return (Criteria) this;
        }

        public Criteria andChangetypeLessThan(String value) {
            addCriterion("changeType <", value, "changetype");
            return (Criteria) this;
        }

        public Criteria andChangetypeLessThanOrEqualTo(String value) {
            addCriterion("changeType <=", value, "changetype");
            return (Criteria) this;
        }

        public Criteria andChangetypeLike(String value) {
            addCriterion("changeType like", value, "changetype");
            return (Criteria) this;
        }

        public Criteria andChangetypeNotLike(String value) {
            addCriterion("changeType not like", value, "changetype");
            return (Criteria) this;
        }

        public Criteria andChangetypeIn(List<String> values) {
            addCriterion("changeType in", values, "changetype");
            return (Criteria) this;
        }

        public Criteria andChangetypeNotIn(List<String> values) {
            addCriterion("changeType not in", values, "changetype");
            return (Criteria) this;
        }

        public Criteria andChangetypeBetween(String value1, String value2) {
            addCriterion("changeType between", value1, value2, "changetype");
            return (Criteria) this;
        }

        public Criteria andChangetypeNotBetween(String value1, String value2) {
            addCriterion("changeType not between", value1, value2, "changetype");
            return (Criteria) this;
        }

        public Criteria andBeforechangeIsNull() {
            addCriterion("beforeChange is null");
            return (Criteria) this;
        }

        public Criteria andBeforechangeIsNotNull() {
            addCriterion("beforeChange is not null");
            return (Criteria) this;
        }

        public Criteria andBeforechangeEqualTo(String value) {
            addCriterion("beforeChange =", value, "beforechange");
            return (Criteria) this;
        }

        public Criteria andBeforechangeNotEqualTo(String value) {
            addCriterion("beforeChange <>", value, "beforechange");
            return (Criteria) this;
        }

        public Criteria andBeforechangeGreaterThan(String value) {
            addCriterion("beforeChange >", value, "beforechange");
            return (Criteria) this;
        }

        public Criteria andBeforechangeGreaterThanOrEqualTo(String value) {
            addCriterion("beforeChange >=", value, "beforechange");
            return (Criteria) this;
        }

        public Criteria andBeforechangeLessThan(String value) {
            addCriterion("beforeChange <", value, "beforechange");
            return (Criteria) this;
        }

        public Criteria andBeforechangeLessThanOrEqualTo(String value) {
            addCriterion("beforeChange <=", value, "beforechange");
            return (Criteria) this;
        }

        public Criteria andBeforechangeLike(String value) {
            addCriterion("beforeChange like", value, "beforechange");
            return (Criteria) this;
        }

        public Criteria andBeforechangeNotLike(String value) {
            addCriterion("beforeChange not like", value, "beforechange");
            return (Criteria) this;
        }

        public Criteria andBeforechangeIn(List<String> values) {
            addCriterion("beforeChange in", values, "beforechange");
            return (Criteria) this;
        }

        public Criteria andBeforechangeNotIn(List<String> values) {
            addCriterion("beforeChange not in", values, "beforechange");
            return (Criteria) this;
        }

        public Criteria andBeforechangeBetween(String value1, String value2) {
            addCriterion("beforeChange between", value1, value2, "beforechange");
            return (Criteria) this;
        }

        public Criteria andBeforechangeNotBetween(String value1, String value2) {
            addCriterion("beforeChange not between", value1, value2, "beforechange");
            return (Criteria) this;
        }

        public Criteria andAfterchangeIsNull() {
            addCriterion("afterChange is null");
            return (Criteria) this;
        }

        public Criteria andAfterchangeIsNotNull() {
            addCriterion("afterChange is not null");
            return (Criteria) this;
        }

        public Criteria andAfterchangeEqualTo(String value) {
            addCriterion("afterChange =", value, "afterchange");
            return (Criteria) this;
        }

        public Criteria andAfterchangeNotEqualTo(String value) {
            addCriterion("afterChange <>", value, "afterchange");
            return (Criteria) this;
        }

        public Criteria andAfterchangeGreaterThan(String value) {
            addCriterion("afterChange >", value, "afterchange");
            return (Criteria) this;
        }

        public Criteria andAfterchangeGreaterThanOrEqualTo(String value) {
            addCriterion("afterChange >=", value, "afterchange");
            return (Criteria) this;
        }

        public Criteria andAfterchangeLessThan(String value) {
            addCriterion("afterChange <", value, "afterchange");
            return (Criteria) this;
        }

        public Criteria andAfterchangeLessThanOrEqualTo(String value) {
            addCriterion("afterChange <=", value, "afterchange");
            return (Criteria) this;
        }

        public Criteria andAfterchangeLike(String value) {
            addCriterion("afterChange like", value, "afterchange");
            return (Criteria) this;
        }

        public Criteria andAfterchangeNotLike(String value) {
            addCriterion("afterChange not like", value, "afterchange");
            return (Criteria) this;
        }

        public Criteria andAfterchangeIn(List<String> values) {
            addCriterion("afterChange in", values, "afterchange");
            return (Criteria) this;
        }

        public Criteria andAfterchangeNotIn(List<String> values) {
            addCriterion("afterChange not in", values, "afterchange");
            return (Criteria) this;
        }

        public Criteria andAfterchangeBetween(String value1, String value2) {
            addCriterion("afterChange between", value1, value2, "afterchange");
            return (Criteria) this;
        }

        public Criteria andAfterchangeNotBetween(String value1, String value2) {
            addCriterion("afterChange not between", value1, value2, "afterchange");
            return (Criteria) this;
        }

        public Criteria andEffectdateIsNull() {
            addCriterion("effectDate is null");
            return (Criteria) this;
        }

        public Criteria andEffectdateIsNotNull() {
            addCriterion("effectDate is not null");
            return (Criteria) this;
        }

        public Criteria andEffectdateEqualTo(Date value) {
            addCriterionForJDBCDate("effectDate =", value, "effectdate");
            return (Criteria) this;
        }

        public Criteria andEffectdateNotEqualTo(Date value) {
            addCriterionForJDBCDate("effectDate <>", value, "effectdate");
            return (Criteria) this;
        }

        public Criteria andEffectdateGreaterThan(Date value) {
            addCriterionForJDBCDate("effectDate >", value, "effectdate");
            return (Criteria) this;
        }

        public Criteria andEffectdateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("effectDate >=", value, "effectdate");
            return (Criteria) this;
        }

        public Criteria andEffectdateLessThan(Date value) {
            addCriterionForJDBCDate("effectDate <", value, "effectdate");
            return (Criteria) this;
        }

        public Criteria andEffectdateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("effectDate <=", value, "effectdate");
            return (Criteria) this;
        }

        public Criteria andEffectdateIn(List<Date> values) {
            addCriterionForJDBCDate("effectDate in", values, "effectdate");
            return (Criteria) this;
        }

        public Criteria andEffectdateNotIn(List<Date> values) {
            addCriterionForJDBCDate("effectDate not in", values, "effectdate");
            return (Criteria) this;
        }

        public Criteria andEffectdateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("effectDate between", value1, value2, "effectdate");
            return (Criteria) this;
        }

        public Criteria andEffectdateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("effectDate not between", value1, value2, "effectdate");
            return (Criteria) this;
        }

        public Criteria andMakeridIsNull() {
            addCriterion("makerId is null");
            return (Criteria) this;
        }

        public Criteria andMakeridIsNotNull() {
            addCriterion("makerId is not null");
            return (Criteria) this;
        }

        public Criteria andMakeridEqualTo(Integer value) {
            addCriterion("makerId =", value, "makerid");
            return (Criteria) this;
        }

        public Criteria andMakeridNotEqualTo(Integer value) {
            addCriterion("makerId <>", value, "makerid");
            return (Criteria) this;
        }

        public Criteria andMakeridGreaterThan(Integer value) {
            addCriterion("makerId >", value, "makerid");
            return (Criteria) this;
        }

        public Criteria andMakeridGreaterThanOrEqualTo(Integer value) {
            addCriterion("makerId >=", value, "makerid");
            return (Criteria) this;
        }

        public Criteria andMakeridLessThan(Integer value) {
            addCriterion("makerId <", value, "makerid");
            return (Criteria) this;
        }

        public Criteria andMakeridLessThanOrEqualTo(Integer value) {
            addCriterion("makerId <=", value, "makerid");
            return (Criteria) this;
        }

        public Criteria andMakeridIn(List<Integer> values) {
            addCriterion("makerId in", values, "makerid");
            return (Criteria) this;
        }

        public Criteria andMakeridNotIn(List<Integer> values) {
            addCriterion("makerId not in", values, "makerid");
            return (Criteria) this;
        }

        public Criteria andMakeridBetween(Integer value1, Integer value2) {
            addCriterion("makerId between", value1, value2, "makerid");
            return (Criteria) this;
        }

        public Criteria andMakeridNotBetween(Integer value1, Integer value2) {
            addCriterion("makerId not between", value1, value2, "makerid");
            return (Criteria) this;
        }

        public Criteria andMakedateIsNull() {
            addCriterion("makeDate is null");
            return (Criteria) this;
        }

        public Criteria andMakedateIsNotNull() {
            addCriterion("makeDate is not null");
            return (Criteria) this;
        }

        public Criteria andMakedateEqualTo(Date value) {
            addCriterionForJDBCDate("makeDate =", value, "makedate");
            return (Criteria) this;
        }

        public Criteria andMakedateNotEqualTo(Date value) {
            addCriterionForJDBCDate("makeDate <>", value, "makedate");
            return (Criteria) this;
        }

        public Criteria andMakedateGreaterThan(Date value) {
            addCriterionForJDBCDate("makeDate >", value, "makedate");
            return (Criteria) this;
        }

        public Criteria andMakedateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("makeDate >=", value, "makedate");
            return (Criteria) this;
        }

        public Criteria andMakedateLessThan(Date value) {
            addCriterionForJDBCDate("makeDate <", value, "makedate");
            return (Criteria) this;
        }

        public Criteria andMakedateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("makeDate <=", value, "makedate");
            return (Criteria) this;
        }

        public Criteria andMakedateIn(List<Date> values) {
            addCriterionForJDBCDate("makeDate in", values, "makedate");
            return (Criteria) this;
        }

        public Criteria andMakedateNotIn(List<Date> values) {
            addCriterionForJDBCDate("makeDate not in", values, "makedate");
            return (Criteria) this;
        }

        public Criteria andMakedateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("makeDate between", value1, value2, "makedate");
            return (Criteria) this;
        }

        public Criteria andMakedateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("makeDate not between", value1, value2, "makedate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}